async function async1() {
    console.log('async1 start');//2
    await async2();
    console.log('asnyc1 end');//6
}
async function async2() {
    console.log('async2');//3
}
console.log('script start');//1
setTimeout(() => {
    console.log('setTimeOut');//8
}, 0);
async1();
new Promise(function (reslove) {
    console.log('promise1');//4
    reslove();
}).then(function () {
    console.log('promise2');//7
})
console.log('script end'); //5
